

OBJ = main.o create_mesh.o finite_diff_method.o


main: $(OBJ)
	mpicc -o main $(OBJ) -lm

main.o: main.cpp head.h create_mesh.h finite_diff_method.h
	mpicc -o main.o -c main.cpp

create_mesh.o: create_mesh.cpp head.h create_mesh.h
	mpicc -o create_mesh.o  -c create_mesh.cpp

finite_diff_method.o: finite_diff_method.cpp head.h finite_diff_method.h
	mpicc -o finite_diff_method.o -c finite_diff_method.cpp

clean:
	rm main $(OBJ)
dataclean:
	rm ../Data/*.txt
	rm ../Result/*.txt
